//
//  MantisSystemModel.m
//  NLProjectFrameworkDemo
//
//  Created by iosdeveloper on 2020/4/29.
//  Copyright © 2020 yj_zhang. All rights reserved.
//

#import "MantisSystemModel.h"

@implementation MantisSystemModel
-(CGSize)contentSize{
    
    CGRect rect = [self.historyModel.msg boundingRectWithSize:CGSizeMake(IMSCREEN_WIDTH-adaptWidth750(20*2), MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName :KIMFontRegularSize(14)} context:nil];
    CGSize size = CGSizeMake(ceilf(rect.size.width)+1, ceilf(rect.size.height));
//    CGFloat orgiWidth=size.width;
//    CGFloat orgHeight=size.height;
//    if (orgiWidth<adaptWidth750(120)) {
//        orgiWidth=adaptWidth750(120);//cell最低高度
//    }
//
//    if (orgHeight<adaptWidth750(80)) {
//        orgHeight=adaptWidth750(80);//cell最小宽度
//    }
    
//    CGSize newSize =CGSizeMake(orgiWidth, orgHeight);
//    // 加上气泡边距
//    size.height += 30;
//    size.width += 30;

    return size;
}
@end
